import React from 'react'
import { useMatches } from 'react-router-dom'
function useBtn(type) {
    let matches = useMatches()
    let {btn} = matches[matches.length-1].data
  return btn.includes(type)
}

export default useBtn
